Ctrl-D in editor duplicates the selected block or the current line when no block selected.